﻿@model Tuple<CashOrCard.Models.Login,CashOrCard.Models.Register>
@using (Html.BeginForm("Login","Login", new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken()        
    <div id="login" class="login-left">            
        <div class="title">Registered User</div>   
            @if ("login".Equals(ViewBag.validationform))
            {
                @Html.ValidationSummary();           
            }     
        <div class="field-title">@Html.LabelFor(m=>m.Item1.Email)</div>
        <div class="field">@Html.TextBoxFor(m=>m.Item1.Email)</div>
        <div class="field-title">@Html.LabelFor(m=>m.Item1.Password)</div>
        <div class="field">@Html.PasswordFor(m=>m.Item1.Password)</div>
        <div class="remember">
            <div class="rememberme">
                @Html.CheckBoxFor(m => m.Item1.RememberMe)
                @Html.LabelFor(m => m.Item1.RememberMe, new { @class = "checkbox" })
            </div>
            <div class="forgetpwd">
                <a href="#">Forget your password?</a>
            </div>
        </div>
            
        <div><input type="submit" value="Log In" class="login-button" /></div>
    </div>
}
